home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2008 November / PCWNOV08.iso / Software / Freeware / Mini Map Sidebar 0.3 / mini_map_sidebar-0.3.0-fx.xpi / chrome / content / addAddressDlg.xul < prev    next >
Encoding:
Extensible Markup Language  |  2008-02-20  |  1.9 KB  |  67 lines

  1. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  2. <!DOCTYPE overlay SYSTEM "chrome://minimap/locale/addressDlg.dtd" >
  3.  
  4. <dialog id="addAddress"
  5.                 title = "&minimap.addaddress.dialog;"
  6.                 xmlns:html="http://www.w3.org/1999/xhtml"
  7.                 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  8.                 minwidth="320"
  9.                 onload="onLoad();"
  10.                 ondialogaccept="return onAccept();"
  11.                 ondialogcancel="return onCancel();"
  12.                 button="accept,cancel">
  13.  
  14. <script type="application/x-javascript">
  15. var $ = function(x) { return    document.getElementById(x); }
  16.  
  17. var gParams;
  18.  
  19. function onLoad() {
  20.     gParams    = window.arguments[0];
  21.     $('bpaddaddress-title').value = gParams.title; 
  22.     $('bpaddaddress-address').value = gParams.address;
  23.     $('bpaddaddress-url').value = gParams.url;
  24.     $('bpaddaddress-description').value = gParams.description;
  25. }
  26.  
  27. function onCancel() {
  28.     gParams.cancelled = true;
  29.     return true;
  30. }
  31.  
  32. function onAccept() {
  33.     //dump("insertImage.onAccept()\n");
  34.     gParams.title = $('bpaddaddress-title').value;
  35.     gParams.address = $('bpaddaddress-address').value;
  36.     gParams.url = $('bpaddaddress-url').value;
  37.     gParams.description = $('bpaddaddress-description').value;
  38.     return true;
  39. }
  40.  
  41. </script>
  42.     <groupbox>
  43.         <caption label="&minimap.addaddress.description;"/>
  44.         <grid>
  45.             <columns>
  46.                 <column/>
  47.                 <column flex="1"/>
  48.             </columns>
  49.             <rows>
  50.                 <row align="center">
  51.                     <description value="&minimap.addaddress.title;"/>
  52.                     <textbox id="bpaddaddress-title" value=""/>
  53.                 </row>
  54.                 <row align="center">
  55.                     <description value="&minimap.addaddress.address;"/>
  56.                     <textbox id="bpaddaddress-address" value=""/>
  57.                 </row>
  58.             </rows>
  59.         </grid>
  60.         <label value="&minimap.addaddress.url;"/>
  61.         <textbox id="bpaddaddress-url" value=""/>
  62.         <label value="&minimap.addaddress.descript;"/>
  63.         <textbox id="bpaddaddress-description" value="" multiline="true"/>
  64.         <separator height="5px"/>
  65.     </groupbox>
  66. </dialog>
  67.